package in.abip.chisame.model;

import in.abip.chisame.R;

/**
 * Tentacle record.
 * 
 * @author Julot
 * @since Jan 31, 2012 9:29:46 AM
 */
public class Tentacle extends CActiveRecord implements IListItem {
	public String name = null;
	public Integer roomId = null;
	public Integer host = null;
	public Integer channel = null;
	
	public static Tentacle model() {
		return new Tentacle();
	}

	public int getListIconResource() {
		return R.drawable.ic_list_camera;
	}

	public String getListText() {
		return ((name == null) || (name.equals(""))) ? "Sensor" : name;
	}
}
